From 9cc7b932b1c1d58861ac97c8cdbce97fdcea0b7e Mon Sep 17 00:00:00 2001 From: tsteven4 <13596209+tsteven4@users.noreply.github.com> Date: Tue, 16 Apr 2024 07:35:04 -0600 Subject: [PATCH] work around homebrew python linking issues (#1267) * debug python brew issues * dbg2 * dbg3 * dbg4 * insulate workflow from homebrew location. --- .github/workflows/macos.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 5244f8741..3538c98fa 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -73,6 +73,12 @@ jobs: # https://github.com/actions/runner-images/issues/6507 # https://github.com/actions/runner-images/issues/2322 # brew update # skip update for now to avoid link issues AND many slow dependency upGRADES. + brew list -1 | grep python + ls -l $(brew --prefix)/bin | grep -i python + # workaround for https://github.com/actions/setup-python/issues/577 + brew list -1 | grep python | while read formula; do brew unlink $formula; brew link --overwrite $formula; done + brew list -1 | grep python + ls -l $(brew --prefix)/bin | grep -i python brew install ninja brew install docbook docbook-xsl fop gnu-sed # brew install is taking forever on macos-11, skip jing-trang and all it's dependencies. -- 2.30.2